﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Ecreate.Web.popedom
{
    public partial class mainpage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            utility.SessionManage.CheckSessionObject(this);
        }

        protected void btn_handler_Click(object sender, EventArgs e)
        {
            string value = HtmlHelper.getPostValue(this);
            if (value == "exit")
            {
                utility.SessionManage.ClearSessionObject(this);
                Response.Redirect("/Default.aspx");
            }
            if (value == "mainpage")
            {
                utility.SessionManage.ClearSessionObject(this);
                Response.Redirect("/Default.aspx");
            }
        }
    }
}
